Skip to content

Separate ordinary Harness execution and evaluation - #735

Merged
Dong1017 merged 2 commits into
mainfrom
codex/702-p7-ordinary
Nov 26, 2026
Merged

Dong1017 merged 2 commits into
mainfrom
codex/702-p7-ordinary

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #702

Ordinary rounds and packaged tasks

Executor prepares project commands and owns the process, the original deadline, the attempt's cleanup facts and the packaged arguments, benchmark and assess calls. Evaluator applies the ordered project gates and dispatches the final assessment using the scorer supplied by Apps. The first failed or unverifiable stage stops the next process from starting. Manager retains the session and its budget. The CLI, tests, reporting tools, active Qwen VATS driver, evidence validator and upgrade guide move with the public imports. Accepted scope and delegation · Migration guide

Installed evidence at the first revision

Built the normal wheel from ef126ccfbc707adb94a1a1bf29ba6f2f2a60d760 on merged P6 17fd7316. Installed it outside the checkout and compared it with the pre-migration wheel from a22636c5. Pre-migration receipt

| Check | Observed result |

| --- | --- |

| 13 project and 22 protocol cases on each installed wheel | All 35 matched. The project tests exercise first-failure handling, absent quality or score, and both decision and explanation switches. A missing required explanation stayed INCONCLUSIVE, contradiction stayed FAIL and supported evidence passed. Protocol cases retained the original deadline and the recorded timeout, cleanup and usage facts. |

| Public ordinary CLIs | Both campaign and benchmarks session launched real arguments → benchmark → assess children. After an interruption with an execution receipt, recovery launched one assess; repeating recovery launched zero children and charged zero additional rounds. |

| Frozen ordinary sessions | Two P1 samples × two CLIs × status and recover. All eight rejected the changed runtime fingerprint with zero child processes and byte-identical session files. |

| Published paths and installation | All 17 Executor and 18 Evaluator names resolved from the installed package. Four retired modules were absent. Cold request_digest loaded no SQLite, Records, Evaluator or local target. Both 2,069-byte D023 vectors matched their own SHA-256. All seven registered repository packs loaded at their D007 paths. Verified 1,033 installed members, 57 static fingerprint paths and all 11 retained Qwen archive entries. |

Source archive SHA-256 53cd768020474ff691397bf0b0424ca835b4b48e1f79c430fc2653d8a5b973bb. Wheel 0.3.5.dev12+gef126ccf SHA-256 898abef487e1f49d7f7fa197050f6abddc3a26bd088a6703543b7b32ea677430. Consolidated installed comparison SHA-256 cd596bbd6be123509cddf49d8cf590f45a1a597b8f58f5d8b6efcf10e67f8dfd. The focused source run on this tree passed 175 cases with two platform skips. The architecture run passed 470 cases. Earlier candidate checks

Current review revision

The two Linux failures on the first revision were reproduced and fixed at e4a284e0. The controller test intercepts the real Executor protocol entry and checks the assessment arguments. The static dependency test accounts for lazy Executor imports, alongside the fresh-process cold-import check. Both targeted tests and Ruff passed. The normal wheel 0.3.5.dev13+ge4a284e0 has SHA-256 0b284c5f3ddea26d3f142dc2789844388b676b35545b7669ef34e8f95028ce29. Source archive SHA-256 is c28ad7cc307a412455bda1436d40a163be8f760a71e797a5302c992a016a79a0. All 1,033 installed members and seven D007 packs were verified.

Integration

P3 and P6 are in main. At intake, #699 (b82f04c6) shared six paths and #709 (f5d19e91) shared eleven, including the session controller, guide and tests. Recheck those paths on integration. P8 owns service-reuse execution and recovery receipts. P9 owns Manager and the final installed-main verification. Codex implements and integrates on behalf of @Dong1017.

The normal wheel at e4a284e0 matched the pre-migration result on all 35 ordinary cases (13 project and 22 packaged-protocol cases). Both CLI entry points ran real arguments, benchmark and assess children. The interrupted run launched only the missing assess once. Eight historical fingerprint mismatches preserved all files and started zero children. Both D023 vectors and all seven registered resource packs matched. The comparison receipt SHA-256 is 470b267924a379813dc0ab0ce099fb486c07a0640e1f505ac4e297f4dcf48452. Current revision receipts


{"schema_version":1,"head_sha":"e4a284e0736ceea1b8ae6a50c2e4e55768f4f156","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"max","role":"author"}]}

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017 请求复核 P7 当前提交 ef126ccfbc707adb94a1a1bf29ba6f2f2a60d760(基于已合入的 P6)。

@amy-why-3459 请复核普通项目的首次失败是否阻止下一阶段启动,以及缺 score、--require-explanation 与原 deadline/cleanup 事实是否仍给出迁前判定。PR 正文列出了同一组 35 个用例在两个正常安装包上的结果。

@zengchuang-hw 请复核 Apps 注入评分器、Executor 启动真实子进程、Evaluator 给出判定的边界,以及两个普通 CLI 的中断恢复和八条历史指纹拒绝。请在当前提交提交正式 review;有阻塞请指出能观察到差异的输入或路径。

@Dong1017 Dong1017 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 26, 2026

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Reviewed base 17fd731 and head ef126cc (full change, diffComplete: true). This is a self-review by the PR author's account, so this COMMENT is not an independent approval. No formal approval exists on this head (prior-reviews.md).

No blocker is confirmed in the paths traced below. PASS is withheld because the review is incomplete and one verdict-classification point needs confirmation.

Verified on the head tree:

  • First-failure stop: src/inferrsi/harness/executor/_ordinary.py L85–91 stops before the next child starts when a source check fails, a step does not complete, or the frozen gate rejects a step. evaluator/_project.py L94–103 returns at the first non-completed step.
  • Missing quality or metric: evaluator/_project.py L63–64 and L65–69 give infrastructure failure for non-boolean quality or an invalid metric. Paired statistics that are unavailable give score None (L175–178).
  • --require-explanation: evaluator/_project.py L162–167 turns only contradicted into FAIL and every other non-explained state into INCONCLUSIVE. executor/_project.py L40–43 requires at least MIN_PAIRS repetitions, so the check cannot be skipped silently.
  • Deadline: _ordinary.py L61 computes one end shared by all project steps. executor/local_process.py L294–295 and L309–311 return timeout before launch once the whole-run deadline is spent.
  • Result path: local_process.py L402 substitutes {result} with the same execution/<id>/result.json that _project.py L43 reads.

Needs confirmation before PASS:

  1. Nonzero exit with an explicit result. local_process.py L336 marks any nonzero exit as failed, and _project.py L41–42 returns infrastructure failure before result.json is read. A frozen script that writes status: candidate_failure and exits nonzero is therefore INCONCLUSIVE, not FAIL. Please confirm this matches the pre-migration verdict. If the 35-case comparison does not include this input, add it to the evidence.
  2. Recovery and CLI claims are not traced here: one assess after interruption, zero further rounds on repeat, the eight fingerprint rejections, and Apps scorer injection. attempt_recovery.py was read only for the cleanup scan (L53–69) and confirmation (L102–122). The manager budget path and the campaign and benchmarks session CLIs were not read.
  3. I could not open the diff text itself (the seeded pr/diff.patch is not readable from my workspace), so this review used head-tree files. Hunks outside the paths above are unreviewed.

Non-blocking note: the executor imports inspect_project_step from the evaluator (_ordinary.py L43) and uses it to decide whether to launch the next child. The same gate therefore runs in both layers. This is consistent, but the module docs should say so.

Verification limits: no tests run, CI status not checked, pre-migration wheels not compared by me, and the PR's SHA-256 and test-count evidence not re-run.

I will re-read after the author pushes a new head or supplies the evidence above.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

zengchuang-hw
zengchuang-hw previously approved these changes Nov 26, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应本轮邀请。#702 P7 首审,main base 17fd73163b74f71c976fcd22073443b9cb86ee6f → head ef126ccfbc707adb94a1a1bf29ba6f2f2a60d760。重建此提交实际 Git 源码闭包得到 57 个路径,逐份计算字节摘要。用 Executor 的公开命令构造器真实启动一个无设备的合成 benchmark 子进程,确认入口参数及注入的执行器能到达脚本。执行当前 Evaluator 路径验证注入的评分器结果原样返回;另用合成会话跑 status / recover,旧指纹拒绝且无文件改动,同指纹恢复调用收到原注入评分器(恢复控制器替身)。静态确认 Apps 两个入口归一到同一会话分派,普通项目所有步骤共用单调时限,当前步骤失败不发起下一步。未独立重装 wheel、执行真实模型或两条完整历史恢复链,旧样本八次拒绝是发布者证据,不是我的独立重跑。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex on behalf of @Dong1017.

I ran the additional case from the review against both installed wheels. The same candidate quality wrapper wrote the same explicit candidate_failure result, with SHA-256 2caca4c87a726f52a9115a30acaa4a6c559a57e89184a1aaf1c87ebe538933ec. Changing only its process exit status gave these results through the CLI.

Wrapper exit CLI exit, both wheels Formal assessment, both wheels
0 0 FAIL, candidate_check_rejected
23 2 INCONCLUSIVE, failed_execution

All four runs recorded exactly two child launches, baseline and candidate quality, and zero measurements. A nonzero child exit takes precedence over its output file. Old normal wheel SHA-256 f2809f74c5630b7ce634878fefce2876f67ba2320f5aaa26b4bd5aceb612fc1a, current normal wheel 898abef487e1f49d7f7fa197050f6abddc3a26bd088a6703543b7b32ea677430. JUnit SHA-256 values were 853b834cffe3e8d644be1733fc97f5b53c589a48ce158f5e4bf393f39b6a5259 and 06c2ae3e3b88a78cc3f66fa549252d20eb6f79fb524345f2bc4d5cabb6c56d46, respectively.

The PR's installed-package receipt also runs the public campaign and benchmarks session entry points. For a matching ordinary fingerprint the interrupted run completes one assess child. With the two frozen ordinary fixtures, each entry point rejected status and recovery across a fingerprint change, with zero children and byte-identical session files in all eight runs. The injected scorer and same-fingerprint recovery also have an independent current-head review.

…cations

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017 跟进 P7。@amy-why-3459 @zengchuang-hw 请正式复核 e4a284e0。上轮 Linux 全量检查暴露了两项迁移前假设。普通会话测试现在在 Executor 实际调用的位置替换协议入口,继续检查评分器收到的参数。静态依赖测试列出了 Executor 延迟导入的模块,新进程的冷导入断言仍逐项检验。两项测试已复现并修正,当前正常 wheel 已核对 1,033 个成员和七种资源包。请重点复核这两个测试的边界与前一轮提出的候选证据条件。四种旧包与候选包对照

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Self-review: the PR author is Dong1017, so this COMMENT is not an independent approval. Dong-bot (authorized delegate) posted it for the re-review requested at e4a284e0.

Reviewed base 17fd73163b74f71c976fcd22073443b9cb86ee6f and head e4a284e0736ceea1b8ae6a50c2e4e55768f4f156 (full change, diffComplete: true). The delta from the prior reviewed head ef126ccf is described in the PR as test-only fixes. I could not open that delta in this session.

Verified on the head tree:

  • The source lines behind the ef126ccf findings still match at e4a284e0:
    • src/inferrsi/harness/executor/_ordinary.py L85–91: stops before the next child on a failed source check, a non-completed step, or a rejecting decision.
    • _ordinary.py L61: one shared end deadline for all project steps.
    • src/inferrsi/harness/evaluator/_project.py L63–69: non-boolean quality and invalid metric give infrastructure failure.
    • evaluator/_project.py L94–103: the first non-completed step returns.
    • evaluator/_project.py L162–167: with --require-explanation, only contradicted becomes FAIL. Other unexplained states become INCONCLUSIVE.
    • src/inferrsi/harness/executor/_project.py L38–43: the MIN_PAIRS check for paired decisions and --require-explanation.
  • src/inferrsi/harness/executor/trials/external.py L12–48: metric validation belongs to the caller, and a metric error is recorded rather than dropped.

Blockers and required evidence before PASS:

  1. No full Linux run on the current head is on record. The PR says the first revision's Linux full check exposed two failures, the controller test and the static dependency test. For e4a284e0 the record cites only those two targeted tests and Ruff. A targeted pass on the two failing tests does not show that the rest of the suite is green on Linux at this head. Expected: a full Linux test run or CI result on e4a284e0, with its outcome.
  2. The two changed tests are the subject of this request, and I could not confirm their boundaries from the diff. Expected: the test names and assertions in the PR, showing that:
    (a) the session-controller test still checks the arguments the injected scorer receives, not only that the entry point was called;
    (b) the static dependency test's list of Executor lazy imports is exact, so a new import outside the list still fails the test. A skip-list or a loose match would not meet this.

Not verified here: no tests run, no wheel installed, no SHA-256 values checked, and executor/local_process.py L294–311 (cited in the prior review) not re-read.

I will re-read after the author pushes or posts the Linux full-run result on the same head. Independent approvals from amy-why-3459 and zengchuang-hw are still needed for merge. This COMMENT does not count as one.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @amy-why-3459.

复核 P7 本轮提交,base 17fd7316 → head e4a284e0。和上轮 ef126ccf 的固定比较只改两份测试:评分器测试仍断言实参、候选字节、测量回执及最终结果一致;静态依赖测试仍要求完整模块集合精确相等,冷导入继续使用更小的集合。

上轮我隔离运行了迁前与迁后的项目判定和执行循环:非零退出即使留下候选失败 JSON,仍是基础设施失败;缺质量字段或第一步失败不会启动下一阶段;后一步超时时仍使用同一截止时间并保留清理记录。当前生产代码未变。也核对了缺 score 的例外仍只适用于明确不合格的 paired 项目,以及 --require-explanation 将矛盾判 FAIL、证据不足判 INCONCLUSIVE。没有本地重装 wheel 或重跑全量。

当前 Ready CI 八项通过,包括两版 Linux 全量、两版安装包和两台宿主;知识准入也通过。

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应本次邀请。#702 P7 主线 base 17fd73163b74f71c976fcd22073443b9cb86ee6f → head e4a284e0736ceea1b8ae6a50c2e4e55768f4f156。对照上轮检视的 ef126ccf,增量只改两个测试文件。评分器测试现在拦截 assess_packaged_task 实际解析的 _task_protocol.run_task_protocol,仍核对交给 assessor 的留存证据;静态白名单增加的只是可达普通协议模块,冷进程模块名单仍单独约束。上一版独立测过的 57 路径、真实合成子进程和恢复注入所涉生产源码无变化。本轮未重装 wheel 或重跑整套用例。

@Dong1017
Dong1017 merged commit 3d5bbbe into main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants